<?php
/**
 *-----------------  （慕课网）《Yii框架》不得不说的故事  -----------------
 * Author: Zheng_Great
 * Description: yii行为学习 
 * Date: 2017-03-30 13:27:24
 */

namespace frontend\controllers;

use yii;
use yii\web\Controller;
use frontend\helps\behaviors\Yang;


class BehaviorController extends Controller{
	public function actionIndex(){
		$yang=new Yang();

		$yang->name();

		$yang->yyz();

		// $yang->height='180cm'; #覆盖原有的内容

		echo $yang->height;

	}
}


 ?>